<template>
  <div class="zhexian">
    <div v-for="item in data.che" :key="item" class="box">
      <div class="dotted"></div>
      <span>{{ item }}</span>
    </div>
    <div class="date">
      <span>05/15</span>
      <span>05/15</span>
      <span>05/15</span>
      <span>05/15</span>
      <span>05/15</span>
    </div>
  </div>
</template>

<script>
import { reactive } from "vue";
export default {
  setup() {
    const data = reactive({ che: [20, 40, 60, 80, 100] });
    return {
      data,
    };
  },
};
</script>

<style lang="less" scoped>
.zhexian {
  background: paleturquoise;
  width: 90%;
  margin: 20px auto 0;
  font-size: 12px;
  color: #666;
  border-radius: 5px;
  .box {
    height: 30px;
    display: flex;
    align-items: center;
    .dotted {
      border-bottom: 1px dashed #ccc;
      flex: 1;
    }
    span {
      padding: 0 10px;
    }
  }
  .date {
    height: 30px;
    padding: 0 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgb(214, 208, 208);
    margin-top: 10px;
  }
}
</style>
